import { axios } from '@/utils/request'

/**
 * 客户(商圈)管理
 */

export function selectPage (parameter) {
  console.log(parameter);
  return axios({
    url: '/shop/product/list',
    method: 'get',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/shop/product/addAliCoupon',
    method: 'post',
    data: parameter
  })
}

export function del (parameter) {
  return axios({
    url: '/shop/product/' + parameter,
    method: 'delete'
  })
}

export function storeList (parameter) {//门店列表
  return axios({
    url: '/merchant/store/optionselect',
    method: 'get',
    params: parameter
  })
}
export function statusBtn (id) {//启用禁用
  return axios({
    url: '/shop/product/status/' + id,
    method: 'put'
  })
}

export function optionselect (parameter) {//商品列表
  return axios({
    url: '/shop/product/optionselect',
    method: 'get',
    params: parameter
  })
}

export function editAliEquityCard (parameter) {
  return axios({
    url: '/shop/product/editAliEquityCard',
    method: 'post',
    data: parameter
  })
}